import { createSSRApp } from 'vue'
import pinia from './stores'
import App from './App.vue'
import cuCustom from './colorui/components/cu-custom.vue'

export function createApp() {
  const app = createSSRApp(App)

  // 使用 Pinia
  app.use(pinia)

  // 注册全局组件
  app.component('cu-custom', cuCustom)

  return {
    app,
  }
}
